package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        new MyThread1().start();
        new MyThread2().start();

    }
}

class MyThread1 extends Thread{
    public void run(){

        for (int i=0;i<100;i++){

            System.out.println("你谁啊");
        }
    }
}
class MyThread2 extends Thread{
    public void run(){
        for (int i=0;i<100;i++){
            System.out.println("开门，查水表的");
        }
    }
}